<?php
$this->breadcrumbs=array(
	'Posts'=>array('index'),
	$model->title,
);
	
	if(!Yii::app()->user->isGuest)
	{
		$this->menu=array(
			array('label'=>'List Post', 'url'=>array('index')),
			array('label'=>'Create Post', 'url'=>array('create')),
			array('label'=>'Update Post', 'url'=>array('update', 'id'=>$model->id)),
			array('label'=>'Delete Post', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
			array('label'=>'Manage Post', 'url'=>array('admin')),
		);
	}
	else
	{
		$this->menu=array
		(
			array('label'=>'List Post', 'url'=>array('index')),
		);
	}
?>

<h1><?php echo $model->title; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'content',
		'tags',
		'author_id',
	),
)); ?>
